<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:a="livcos.org/ns/admin"
	xmlns="http://www.w3.org/1999/XSL/Format"
  exclude-result-prefixes="a">
	
  <xsl:import href="location.xsl" />
  
  <xsl:template match="a:company">
    <block margin-left="12mm" margin-top="8pt" margin-right="20pt" margin-bottom="4pt"
      keep-with-previous.within-page="always" keep-with-next.within-page="always">
      <xsl:value-of select="a:title"/>
    </block>
    <xsl:apply-templates select="a:address[@type = 'main']"/>
    <block margin-left="12mm" margin-top="4pt" margin-right="20pt" margin-bottom="4pt"
      keep-with-next.within-page="always" keep-with-previous.within-page="always">
      <xsl:apply-templates select="a:phone[@type = 'main']"/>
    </block>
    <block margin-left="12mm" margin-top="4pt" margin-right="20pt" margin-bottom="8pt"
      keep-with-next.within-page="always">
      <xsl:apply-templates select="a:email[@type = 'info']"/>
    </block>
  </xsl:template>

</xsl:stylesheet>
